<?php
/**
 * Created by PhpStorm.
 * User: Lee
 * Date: 2019/12/19
 * Time: 16:12
 */
namespace App\Http\Request\System\Dic;

use App\Common\Utils\BaseRequest;

class DeleteitemRequest extends BaseRequest {
    public function rules() {
        $rules = [
            'id' => 'required|integer|min:1',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'id.required' => 'id不能为空',
            'id.integer' => 'id为整数',
            'id.min' => 'id必须大于0',
        ];

        return $messages;
    }
}